package com.ddone.ioc;

import com.ddone.ioc.xml.controller.UserController;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.test.context.ContextConfiguration;
import org.springframework.test.context.junit4.SpringJUnit4ClassRunner;

/**
 * @author ddone
 * @date 2024/3/19-17:17
 */

@RunWith(SpringJUnit4ClassRunner.class)
@ContextConfiguration(value = {"classpath:application-anno.xml"})
public class TestSSMXML {

    @Autowired
    private UserController userController;

    @Test
    public void testSSM(){
        userController.login("root","123");
    }
}
